package com.fsc.service;

import com.fsc.entity.domain.PictureVideo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Date;
import java.util.List;

/**
* @author 86183
* @description 针对表【picture_video(学生签到签退表)】的数据库操作Service
* @createDate 2024-06-02 13:15:22
*/

public interface PictureVideoService extends IService<PictureVideo> {

    List<PictureVideo> getAllAttendance();

    List<PictureVideo> getAttendanceByStudentId(int studentId);

    List<PictureVideo> getAttendanceByTeacherId(int teacherId);

    List<PictureVideo> getAttendanceByParentId(int parentId);

    String uploadImage(MultipartFile file, int studentId, Date time) throws IOException;

    void addAttendance(MultipartFile file, int studentId, String status, Date time) throws IOException;
    void updateAttendance(int id, String status, Date time);
    void deleteAttendance(int id);

}
